﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Community.CsharpSqlite
{
    class SyncTypeFlag
    {

        /*
    ** CAPI3REF: Synchronization Type Flags
    **
    ** When SQLite invokes the xSync() method of an
    ** [sqlite3_io_methods] object it uses a combination of
    ** these integer values as the second argument.
    **
    ** When the SQLITE_SYNC_DATAONLY flag is used, it means that the
    ** sync operation only needs to flush data to mass storage.  Inode
    ** information need not be flushed. If the lower four bits of the flag
    ** equal SQLITE_SYNC_NORMAL, that means to use normal fsync() semantics.
    ** If the lower four bits equal SQLITE_SYNC_FULL, that means
    ** to use Mac OS X style fullsync instead of fsync().
    */
        //#define SQLITE_SYNC_NORMAL        0x00002
        //#define SQLITE_SYNC_FULL          0x00003
        //#define SQLITE_SYNC_DATAONLY      0x00010
        public const int SQLITE_SYNC_NORMAL = 0x00002;
        public const int SQLITE_SYNC_FULL = 0x00003;
        public const int SQLITE_SYNC_DATAONLY = 0x00010;
    }
}
